<!DOCTYPE html>
<html>

<head>
    <meta charset="utf-8">
    <meta name="viewport"
        content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no,viewport-fit=cover">
    <link rel="apple-touch-icon-precomposed" href="./icon.png" />
    <meta name="apple-mobile-web-app-capable" content="yes" />
    <meta name="apple-mobile-web-app-title" content="" />
    <meta name="apple-mobile-web-app-status-bar-style" content="black" />
    <title>shanghai</title>
    <link rel="stylesheet" href="../bs/css//bootstrap.css">
    <link rel="stylesheet" href="/bs/css/iconfont.css">
    <script src="../bs/js/jquery-3.6.0.min.js"></script>
    <script src="../bs/js/bootstrap.js"></script>
    <style>
        * {
            margin: 0;
            padding: 0;
            font-family: PingFangSC-Regular, Verdana, Arial, '微软雅黑', '宋体';
        }

        html,
        body {
            height: 100vh;
            overflow: hidden;
            padding-bottom: env(safe-area-inset-bottom);
            padding-bottom: constant(safe-area-inset-bottom);
            overflow-y: auto;
        }


        .item-body {
            column-count: 3;
            column-gap: 12px;
            background-color: #fff;
        }

        .body {
            padding: 0 20vw;
            padding-bottom: 12px;
            min-height: 100%;
        }

        .item {
            background-color: #f5f5f5;
            margin-right: 12px;
            display: flex;
            flex-direction: column;
            break-inside: avoid;
            margin-bottom: 12px;
            width: 100%;
            border-radius: 16px;
            overflow: hidden;
            border: 2px solid #ebebeb;
        }
    </style>
    <script>
        function detailHandle(id) {
            window.location.href = "/cate/" + id;
        }
    </script>
</head>

<body>
    {% include 'view/menu.html'%}
    <div class="body">
        <div class="item-body">
            {% for obj in data %}
            <div class="item" onclick="detailHandle('{{obj.cid}}')">
                <img src="{{obj.thumb}}" alt="" srcset="" width="100%">
                <div style="padding: 12px;background-color: #ffffff;">{{obj.name}}</div>
            </div>
            {% endfor%}
        </div>
    </div>
    {% include 'view/foot.html'%}

</body>

</html>